﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;

namespace MemoryTrainer
{
    public class MemoryButton : Button
    {
        public string MemoryValue { get; set; }
        private string path = @"C:\Dokumente und Einstellungen\long\Eigene Dateien\Visual Studio 2008\Projects\MemoryTrainer\MemoryTrainer\";

        public MemoryButton()
        {
            MemoryValue = string.Empty;            
        }
        public MemoryButton(string memoryValue)
        {
            MemoryValue = memoryValue;
        }
        protected override void OnMove(EventArgs e)
        {
            base.OnMove(e);
            AutoSize = true;
            Image = new Bitmap(path + @"\images\bg.jpg");
            Font = new Font("Microsoft Sans Serif", 32, FontStyle.Bold);
            Text = MemoryValue;
            Name = "MemoryButton";

        }

    }
}
